using System; 
using SubSonic; 

namespace ExtraClub.Domain.Entities{
    public partial class VwMailJob
    {
        public static VwMailJobCollection LoadByQuery(Query q) {
            VwMailJobCollection list = new VwMailJobCollection();
            list.LoadAndCloseReader(VwMailJob.FetchByQuery(q));
            return list;
        }
        public new static VwMailJob FetchByID(int id) {
            VwMailJob ret = null;
            VwMailJobCollection list = new VwMailJobCollection();
            list.LoadAndCloseReader(VwMailJob.FetchByParameter(VwMailJob.Columns.Id, id));
            if (list.Count > 0){
                ret = list[0];
            }
            return ret;
        }
    }
}
